package com.yiminer.util;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import com.yiminer.to.User;

public class TimerUtil {
	public static Boolean isTimeup() {
		Boolean isTimeup = false;
		Date date = new Date();
		// 6-13 working time
		if (date.getHours() < 6 || date.getHours() > 13) {
			isTimeup = false;
		}
		return isTimeup;
	}

	public static List<User> getAllRegistedUsers() {
		List<User> users = new ArrayList<User>();
		User a = new User();
		a.setUsername("sherry1991");
		a.setPassword("kbingjie62");
		a.setPayname("test");
		a.setStatus(2);
		a.setApplicatioId("930865");
		// Set Credit card
		a.setCardNo("4567876545678765");
		a.setCssCode("232");
		a.setExpiryMonth("09");// 01-12
		a.setExpiryYear("2016");// 2013-2017
		users.add(a);

		User b = new User();
		b.setUsername("d138102");
		b.setPassword("Pass99");
		b.setPayname("test");
		b.setStatus(2);
		b.setApplicatioId("944588");
		// Set Credit card
		b.setCardNo("4567876545678765");
		b.setCssCode("232");
		b.setExpiryMonth("09");// 01-12
		b.setExpiryYear("2016");// 2013-2017
		users.add(b);

		return users;
	}
}
